﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Microsoft.Xna.Framework;

namespace The_Last_Knights.Helper.Xml
{
    public class Vector2Reader: ReaderEntity
    {        
        public override object Read(XElement element, string ID, int level)
        {
            Vector2 vector = new Vector2(float.Parse(element.Attribute("X").Value), float.Parse(element.Attribute("Y").Value));
            return vector;
        }
    }
}
